# Maintainer: Milan P. Stanić <mps@arvanta.net>

pkgname=asahi-fwextract
pkgver=0.7.1
pkgrel=0
pkgdesc="Asahi Linux firmware extractor"
_sourcename=asahi-installer
_installerver=0.7.1
arch="aarch64"
url="http://asahilinux.org"
license="MIT"
source="${pkgname}-${_installerver}.tar.gz::https://github.com/AsahiLinux/${_sourcename}/archive/refs/tags/v${_installerver}.tar.gz"
depends="python3 asahi-scripts lzfse"
makedepends="py3-build py3-installer py3-wheel py3-setuptools"
builddir="$srcdir"/$_sourcename-$_installerver

build() {
	python -m build --wheel --no-isolation
}

package() {
	python -m installer --destdir="$pkgdir" dist/*.whl
}
sha512sums="
4635f559f31b62b264c417017eb0e4a16960035c7c0482b9343d413cee4b5a9d26cc5e69bffd15478ad9e5e531a4eb3d8e786ccc89466d4d23c68f7c61ed42a5  asahi-fwextract-0.7.1.tar.gz
"
